<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultrag.net.nz/thymeleaf/layout"
>
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
<div>
    <h1> Thymeleaf in action</h1>
    <a href="/users">首页</a>
</div>

<h3 th:text="${title}"></h3>
<form action="/users" th:action="@{/users}" method="POST" th:object="${user}">
    <input type="hidden" name="id" th:value="*{id}">
    名称：<br>
    <input type="text" name="name" th:value="*{name}">
    <br>
    邮箱：<br>
    <input type="text" name="email" th:value="*{email}">
    <input type="submit" value="提交" >
</form>

<div>
    <a href="http://www.baidu.com">百度一下</a>
</div>

</body>
</html>